{% extends 'feedback/base.html' %} {% block title %} Редактирование наряда
{%endblock %} {% block content %}

  <div
    class="modal fade show"
    id="modal_uslui"
    tabindex="-1"
    aria-labelledby="exampleModalCenterTitle"
    style="display: block"
    aria-modal="true"
    role="dialog"
  >
    <div class="modal-dialog modal-xl modal-fullscreen-lg-down modal-dialog-centered">
      <div class="modal-content">
        <div class="modal-header">
          <h1 class="modal-title fs-5" id="exampleModalCenterTitle">
            Наряд №<b> {{ naryad.nkv }}</b>
          </h1>
          <button
            type="button"
            class="btn-close"
            data-bs-dismiss="modal"
            aria-label="Close"
            _="on click remove #modal_uslui"
          ></button>
        </div>
        <div class="modal-body">
            <div><h5 font-monospace>Итого наряд на сумму: </h5><h5 class="font-monospace">{{ summa }}</h5></div>
          <table class="table table-sm table-hover">
            <thead>
              <th>Код</th>
              <th>Наименование</th>
              <th>Кол-во</th>
              <th>Сумма за 1</th>
              <th>Сумма всего</th>
            </thead>
            <tbody>
              {% for usl in uslugi %}
              <tr>
                <td>{{usl.KUSL}}</td>
                <td>{{usl.NUSL}}</td>
                <td>{{usl.KOL}}</td>
                <td class="font-monospace text-end">{{usl.PRICE}}</td>
                <td class="font-monospace text-end">{{usl.STU}}</td>
              </tr>
              {% endfor %}
            </tbody>
          </table>
        </div>
        <div class="modal-footer">
          <button
            type="button"
            class="btn btn-secondary"
            data-bs-dismiss="modal"
            _="on click remove #modal_uslui"
          >
            Закрыть
          </button>
        </div>
      </div>
    </div>
  </div>
</div>


  {% endblock %}

